<%@ include file="includes/top.jsp"%>

<table align="left" bgcolor="#008800" border="0" cellspacing="2" cellpadding="2">
	<tr>
		<td bgcolor="#FFFF88">
			<s:a action="/shop/viewCategory.do">
				<s:param name="categoryId" value="${product.categoryId}"/>
				<b><font color="BLACK" size="2">&lt;&lt; <s:property value="${product.name}" /></font></b>
			</s:a>
		</td>
	</tr>
</table>

<p>
<center>
	<b><font size="4"><s:property value="${product.name}"/></font></b>
</center>

<table align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="3">
	
	<tr bgcolor="#CCCCCC">
		<td><b>Item ID</b></td>
		<td><b>Product ID</b></td>
		<td><b>Description</b></td>
		<td><b>List Price</b></td>
		<td>&nbsp;</td>
	</tr>
	
	<s:iterator value="item" id="${itemList.pageList}">
	
		<tr bgcolor="#FFFF88">
	
			<td>
				<s:a action="/shop/viewItem.do">
					<s:param name="itemId" value="${item.itemId}"/>
					<b><s:property value="${item.itemId}" /></b>
				</s:a>
			</td>
			
			<td><s:property value="${item.productId}" /></td>
			
			<td>
				<s:property value="${item.attribute1}" />
				<s:property	value="${item.attribute2}" /> 
				<s:property value="${item.attribute3}" />
				<s:property value="${item.attribute4}" /> 
				<s:property value="${item.attribute5}" /> 
				<s:property value="${product.name}" />
			</td>
			
			<td>
				<fmt:formatNumber value="${item.listPrice}" pattern="$#,##0.00" />
			</td>
			
			<td>
				<s:a action="/shop/addItemToCart.do">
					<s:param name="workingItemId" value="${item.itemId}"/>
					<img border="0" src="../images/button_add_to_cart.gif" />
				</s:a>
			</td>
		</tr>
	</s:iterator>
	
	<tr>
		<td>
			<s:if test="${!itemList.firstPage}">
				<s:a href="?page=previous">
					<font color="white"><B>&lt;&lt;Prev</B></font>
				</s:a>
			</s:if>
			<s:if test="${!itemList.lastPage}">
				<s:a href="?page=next">
					<font color="white"><B>Next&gt;&gt;</B></font>
				</s:a>
			</s:if>
		</td>
	</tr>
	
</table>

<%@ include file="includes/bottom.jsp"%>